A regularity criterion for the density-dependent Hall-MHD equations