Fixed an index overrun in partitionENVsequence if the query had a 3' insertion