don't crash when an empty base is attacked

needs to be improved though