[AKN] Fixes crash while closing tab with shown labels.

See #817