Fixed thrown string errors not to be correctly reported by requirejs catch expecting instances of Error.