Fixed some issues found when not including sample image and/or atlas when building.