Fixed crash on disabled custom content

Fixes a crash with the hopper when customcontent is disabled