Fix for undefined index in the admin bar.