Null-checking for group inheritance recursion.