Make sourceUrl optional for namespaces

Needed the source to be optional for some local testing. I think it is also useful in general.