Moved the PotionBrewedEvent to be posted before the removal of the input item

This allows for determining the input itemstack for brewing in the case of the stack size being one. Previously the input itemstack would be null in this case when interacting with it.