Fix for the "PHP Strict standards: Creating default object from empty value" error.