fix err.status invalid lead to uncaughtException
do not expose when err.status not valid
Merge pull request #330 from dead-horse/onerror-status

Onerror status