Should fire error 1004 when ARROW is undefined

Currently in Arrow v84, if ARROW is undefined, error manager will
report error 1002. However, we should expect error 1004 for ARROW is
undefined error.

This pull request would match the raw error messages generated by
different browsers. Currenlty, support Firefox, GoogleChrome, and
PhantomJS.
fix unit test

Assume the browser would generate a error message which includes "ARROW
is undefined"
Merge pull request #136 from bowdev/error_1004

Error 1004