revert BC break glitch

i was not able to reproduce the problem, but users reported a problem with 80f6f501a569812b03a6d610f422ff173d08c613 that the new code stumbled over having just a string in the $keys.

ideally we would figure out what can cause that situation, but at least this will revert the break for such situations, making the code behave as before.