Fixes for anon test

Fixes https://github.com/Tribler/tribler/issues/640.
Isn't this used when passing a download from the commandline?