The bug
Unlike almost every other command, the /gamemode command does not produce any output when it fails (due to the target already being in the specified game mode).
How to reproduce
Be in creative mode
/gamemode creative
Expected result
An error message
Observed result
No output
Can confirm for both affected versions