Move responsibility for null checking into CellScanner class.

While porting commits to Fennec I came across this code item, didn't look quite right to to me, so I changed the responsibility.