Fixed the bug with an empty element in list of photos

Hi, I found the bug with empty element. Look at the picture: http://goo.gl/gru8gb