fix php notice if no domain was saved