Bugfix to prevent exceptions when badly-formatted domains are provided