Fixed the bug causing an error when a torrent has a status other than 'stopped', 'seeding' or 'downloading'.