fixed bug - error when viewing maps which doesn't contain any images

Signed-off-by: Viduranga Wijesooriya <vpowerrc@gmail.com>