This fix does two things
(1) When reading the configuration file it resets entry to NULL
on every pass, thus clearing the value out on each pass to
make sure it's existance doesn't get propigated.
(2) Adds a better check for entry's existance once the reading
is done. This check will now either set the default image
to the entry (same as before) or set it to -1 which is the
expected error or not found code