Fixes #479
bug #525 Fixes #479 (shabbyrobe)

This PR was squashed before being merged into the 5.2-dev branch (closes #525).

Discussion
----------

Fixes #479

Perhaps `getTo()` should just return an empty array instead of `null`, but this fix has fewer potential ramifications.

Commits
-------

d8b2441 Fixes #479