Fixing hostname error

When you create a task without a host, and then try to edit it, this originally gave a 400 error because hostname was never set, and there was no check for "None". This fixes that.
Seems like if we want to make sure it's not `None` or an empty string we could do:

```python
if not args.get('hostname'):
```