Check for nil resource files

See #3719
Land #3723, solves #3719 msfcli crash