Clear current_file_node if it is unloaded and there are no other images

Without this change, pqiv -lr crashed when the first few lines were not
actually images. It called next_file() without a valid
current_file_node(), because it thought that current_file_node was set
(when it was actually removed).