Fixed crash bug for prev and next buttons when there are no items in the playlist.