Fixed issue #117 - Undefined property $this->db

This fix solves the problem mentioned in issue #117, i.e. messages like these:

ERROR - 2013-05-08 17:47:10 --> Severity: Notice  --> Undefined property: Example::$db REST_Controller.php 235

It uses the property_exists() function, which tests if a property is actually present.