Fixes #479

Perhaps `getTo()` should just return an empty array instead of `null`, but this fix has fewer potential ramifications.
Cool, I'll fix all that stuff up tomorrow and resubmit. Thanks for the pointers, I'll be more thorough next time.