Fix cached position not being saved at the end of a playlist