Fixed angularDigest function.
Guarded against some failure cases in the urlDomain filter.