Don't crash if NanoVG context is invalid; Always valid UI size