Better diagnosis when resolvePluginFile would be about to return null.