Report as inappropriate

The printer does exactly as it is told to do. If it was told to retract filament, then it retracts the filament. It does NOT check to see if the tool is at some magic temperature beforehand. Moreover, the G1 command you show doesn't indicate E motion (filament motion). So the firmware itself would not have effected any motion of the filament. There had to be some other offending commands beforehand.

However, this isn't a support forum. Please post to the relevant support forum for your printer.