Minor fix of URL parsing

Fix error if no protocol is entered