Map-Reduce: Mapper sometimes receives null value