Fixed regression with minor grid lines and alternate grid bands not being hidden on axis hide. Closes #1667.