Fix getting only public properties in PHP 5.4