Fixed crash when no words fulfilled a condition

- When the lexicon does not contain any words fulfilling a certain condition, an exception is made to prevent a key error in the dict. An empty list is returned instead.