RAZ-3086: Add a index task when a new host is created
- Added check to ensure that indexing is not triggered if hostid does not exist. Prevents old task URL's with outdated host ids from calling the indexing.