Don't show empty document error on initial load

 Fixes #163