I just use this for storage, and minimize the amount of beans in the hopper since they will be exposed precisely for this reason.
You could probably just make an airtight gasket on the lid of your hopper but that seems like more trouble than it's worth