Fix warning when session regen is not an object

A warning cropped up when the codebase I was testing against had a variable function call. It looks like:

```php
<?php
$x['a']('blah');
```

That will give a "Trying to get property of non-object" error.

This PR fixes that and adds a set of unit tests for `TestSessionRegenFalse`.