Fixes an issue with using fully qualified resource references with onerror.
Generate a fully qualified reference to the error resource if a rim name is specified in the SDK.