Fix a possible crash with file bundles