fixing 500 error when site name is blank