Fixes #479

Perhaps `getTo()` should just return an empty array instead of `null`, but this fix has fewer potential ramifications.
No need to "resubmit". Just push your fixes to the same branch. They'll appear here.