Fix exception tests to work in HHVM

Mocked exceptions in Mockery throw the exception

```
BadMethodCallException: Call to a member function mockery_getName() on a non-object (NULL)
```