Fix handling of empty paths in AbstractSitePathUrlFactory

The `formatPath(String path)` method in the AbstractSitePathUrlFactory class didn't handle an empty path (empty String) correctly. It would return `//` (two slashes), instead of just one.

Fixes MOBILE-113 (https://jira.spring.io/browse/MOBILE-113).