FIX iterating NoneType object

Adds 'IS_EMPTY' error code (used if generating a playlist fails)