Use position in FindEnumStringIndex.

This is a shorter and probably slightly more efficient to write the loop.
auto merge of #2178 : Ms2ger/servo/enum-position, r=jdm

This is a shorter and probably slightly more efficient to write the loop.