minor fixes in DownloadManager.php

We should use "===" instead of "==" since it's better and faster in this case.