Updated error handling for album.php