Lua AIs: do not use empty tables as filters

It’s faster not to provide any argument to wesnoth.get_units() if all
units are to be found.