Fix returning rejection error when origin is invalid
Fix returning rejection error when origin is invalid

fercamp09/int20171T,fercamp09/int20171T,fercamp09/int20171T,fercamp09/int20171T,fercamp09/int20171T,fercamp09/int20171T