remove unneeded masks from shift operand (see LUCENE-5856)