Fixed issue of modules that aren't loaded throwing an error when trying to be accessed.