base: avoid running hooks if no envs were send as parameters

This indicates that tsuru is running the deploy script with tsuru-unit-
agent. The agent will be responsible for running hooks.

In the future the hooks.py file will be removed here.