Don't call path.exists if output_dir is None

The Tribler pull requester is currently broken because os.path gets called with None as an argument (see http://jenkins.tribler.org/job/GH_Tribler_pull-request-tester_devel/2447/console).