Syntax error fix during stale hostname check

small fix for unended if statement