Fix optional 'errorcode' parameter is not set up properly

Summary: Closes https://github.com/facebook/hhvm/pull/4210

Reviewed By: @JoelMarcey

Differential Revision: D1672902

Signature: t1:1672902:1416001499:97856f2a1dc665cfde057ae1eb7c7f1023098706