Moving the getEditor() to the top of the loop.

- Minor to no gains in performance of course, but a little more clear.