Prevented null host from crashing server