Fix bug where "to" passed as a falsey value is treated as missing.