Fixed NPE in group lookup if attribute is not present