Fix resource handlers not loading, add assert to make sure they are loaded when loading resources