A note on the rank of a sparse random matrix