Fix a weird crash

We saw a weird crash in the handling of post_vars when running on the command line. This script would crash APM:

```
<?php

function inverse($x) {
        throw new Exception('Division by zero.');
}

try {
    echo inverse(5) . "\n";
} catch (Exception $e) {
}

bork();
?>
```