fixing some bugs related to loading

This fixes two bugs:

1. The inability to unload a module whose file has been deleted or never existed.
2. The cause of "reload" to fail when it encounters a module whose file has been deleted or never existed.