Move max_downloads option check inside downloadable conditional.