NullPpointer bug in PhotosAdapter fixed

added try\catch block, it's better to investigate the problem in future.