Fixing check for empty hostname to cover case where task is created without a host. Host would error upon editing before this fix
Making code less verbose
Merge pull request #108 from rclough/rmc-hostname-error-fix

Fixing hostname error