Fix deferResizeId
Workaround a recursive canvas resize loop.

- I am not at all happy with this, but at least it stops melonJS from crashing on retina display devices!
- The resize causes the canvas size to be doubled when devicePixelRation == 2
- Because resizing the canvas also triggers the onresize callback, we get stuck in a loop.
- The loop effectively doubles the canvas size until the device runs out of GPU memory.
- After the GPU memory is exhausted, the canvas breaks, and the screen stops working entirely. D'oh!