Check to see if setting piece prios is needed

Fixes https://github.com/Tribler/tribler/issues/537.