check if bbPress function exists before calling it

bbPress may be late-loaded and prevented from instantiating by removing its `plugins_loaded` hook. This commit checks for the existence of the function before calling it.