Please crete an issue on this then. But understand that it is pretty well impossible for a piece of software to anticipate all the ways someone can screw with it outside of its knowledge. The standard to date for Zenphoto is to throw an error indicating it detected an invalid album and continue. Downstream code may or may not try to check if the album is valid. Since normally it would be it is not at all clear that it would be worth the cost of placing a test on each and every object reference to determine if it is valid.