Use state of case sensitivity toggle even when find bar isn't open

@peterflynn - one line change, plus unit test

For #7040