Error when using empty namespace for disambiguation at REPL

Fixes #1497.
Merge pull request #1498 from david-christiansen/issue/1497

Error when using empty namespace for disambiguation at REPL