LPS-42652  Generated WebDAV URL uses fileEntry groupId rather than the themeDisplay scope
LPS-42652 Fix possible NPE - use existing logic when fileEntry == null