Fix exception when specifying version.

The execute_pre_deploy_hooks method wasn't passing an
application_objects value, and the objs array wasn't being initialized
if application_objects was unset.