image-encoders: Change slightly check to make GCC 10 static analyser happy
GCC 10 static analyser reports that "enc" can be used when NULL. Make code more clear about, this will remove the warning. The behaviour does not change.
Signed-off-by: Frediano Ziglio freddy77@gmail.com