Transport critical-current density of superconducting films with hysteretic ferromagnetic dots