Small amount of cleanup to the filter_download_requires function.

Change-Id: I62a72e714ed17890079508271dfffc2ba136d734
Merge "Small amount of cleanup to the filter_download_requires function." into stable/grizzly