Json_foreach always executes once, even if the json array is empty

Thank you for fixing it.

One tag source, I know of, that relied on this "feature" was the [WS] Bandcamp (search by URL) up to version 0.4.5, if used for single track URLs. In the newer versions from 0.4.6 on this issue had already been handled.