Fix bug where async parse callback error argument is not correctly set