Combined RegistrySmaterial and Smaterial together

Also added a few checks to prevent future NullPointerExceptions to log a
severe error whenever null is returned.