Check if a hook has been created, when checking for sync success.

Deleted repos ids are not deleted from Travis and this causes issues.