Better handling for invalid gate storage files.