Answer:
This is a typical mistake when learning German invariably in this case intensifying) adjective/adjective phrase in there. Wenn ich Hunger habe is the correct way.
Die only other it could be "Wenn ich Hunger auf etwas habe" When I'm in the mood for something (food or otherwise).
Step-by-step explanation: