Yeah,  writing the tests this morning I also detected that flaw, an exception is thrown if no domain is given but not for a missing protocol.
I will add this.