Update AbstractObject.php

Fix for Exceptions in addons. Was fixed and tested in 4.2