Fix level detection in Raven_Client::captureException()

Since PHP 5.3, no matter what exception severity parameter was set (e.g. in error handler), Sentry always received event with `level => 'error'`.

Variable `$exception` is always set to `NULL` in order to end the while loop, resulting in `method_exists()` to never pass.