added logic to prevent albums#index view from throwing error if no pictures exist for a given album.