Kostya, if you haven't done that recently, take a look at the last two posts (very recent) in the thread on code.google site that you linked.
Apparently (#20) someone from the project is looking into it, and #21 is asking to "point to an app (in the Play Store) that they can reliably reproduce this with". Maybe you want to volunteer Aquamail for that?
BTW, just an additional data point: I see the same mis(behavior) under Android 4.1.2.
(So, it was not introduced in 5.x., as the OP in that linked code.google thread implied.)