Ensure that there are not multiple source files for a namespace

An update of pull request #1572 which mistakenly threw an exception when no source files were found for a namespace. I've left in a log message stating that no file could be found.