Fixed null pointer exception that occurred when an album with no photos is chosen.