* Fixed header already sent notice when a plugin is using redirection at lower priority than our nav update code.
* Ensured that group ids are always passed as numeric value.
* Fixes fatal error when xprofile was disabled.