Fix missing filePath in Error and PluginError.

file.contents = … somehow resets file.path on error so we have to store
it. Also, React Error does not specify fileName, so add it if missing.