Update Memory.php

I think this catches exceptions from addFileNamespace as intended