Update babel.plugin.php

Fixed loading whole MODX objects into Babel object