Fix popScope() with top scope

There was a bug:

    keymage.pushScope('loading')
    keymage.popScope()
    keymage.getScope() == '' // false, actually was 'loadin'