avoid traceback for empty sources.  fixes #33