Fix gitlab url parse, make namespace not required.

Gitlab version 5 and less doesn't require you to set project namespace.
I can create new project with url without namespace but it did not work and display php warnings on project page,
fix allow to create both project with namespace and without it.