JSCBC-24 Added v8 error catching

Update test case to be able to pass even though an exception is
purposely being throw. Added try-catch code to properly handle an error
within v8 and propagate it to the default node exception handler.

Change-Id: Ic3b868388bd509d8442081d10b1c6326d8bd8995
Reviewed-on: http://review.couchbase.org/26498
Tested-by: Brett Lawson <brett19@gmail.com>
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>