small fix to check if no more tracks are found

needed to change this to get it working. I got exceptions bc of it (even though json_data was '[]' the while condition hasn't been triggered).
my first pull request btw, so please have mercy, when i f***** something up!