playlist/directory: add missing return check