Avoid using bp_is_group()

There's an odd bug in BP (bp_is_current_component()) that causes an error to be
thrown when using this function on non-core directory pages
Don't load admin notice when DOING_AJAX

On certain setups, this could result in the check_is_protected() script running
many times on a pageload, which can be very slow.
Readme