WL-2316 When a group is deleted don't return null.

The problem was that when a group is used in content hosting and is then deleted it was getting returned in some calls as null. This was causing a NPE in some cases.