make sure we get a proper File object or an error

when I call  ```$f = File::getByID($null);``` I get an object like this:

```
File Object
(
    [error] => 
)
```

We should either get an error or a proper file object, not something in between.