Added hook for potion inventory icons

Allow mods to draw the inventory icon for potions from their own texture without having to bind a texture in `hasStatusIcon` (it's just an ugly hack).
(As kinda discussed on IRC).
Huh, true. Derp moment, I was trying to keep it a one-line patch but actually putting the else on the next line does the same thing. Will fix.