Fix AIOOBE in ScalaWordFinder

Reimplementation of #773 without the AspectJ code removal.
I agree, doesn't make much sense to use Option here. I'll change the code.