Add some null pointer checks to v4::Script

This makes all eval() related tests pass again.

Change-Id: I067f2e0acf17932ec9b212723fc8df1ffc4c4884
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>