check for active components to avoid notices

Hey mercime :)

Great work :+1: 

Just a suggestion, maybe you should check for active BuddyPress components ;)