Check for a null host in addition to an undefined host after parsing a style.