Fixes error when ungit is toggled and there is no active item