In `bp_deregister_template_stack()` wrap `function_exists()` check with `is_array()` check. Allows class methods to be removed from template stack locations. See #5671.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8462 cdf35c40-ae34-48e0-9cc9-0c9da1808c22