Add check for BP_Group_Extension

before trying to use it.