Fixed last commit. If toolbarExclude was null it caused an error.