Checks for the toolbar element on window resize before doing anything