Added some error checking for the playlist manager.