Correct HSSFOptimiser logic for the case where the to-keep style wasn't previously in use. Fixes #54443