scripts/lastfm: fix typo in error check