[BUG - FIXED] Game end

In game 21 I had to draw 5 tiles but there were only 4 tiles left. Should in this case not the game end immediately?
Instead the game seems to be going on. Is this a bug or have I missed something?
Instead the game seems to be going on. Is this a bug or have I missed something?