Log warning if grains file contains errors.

Refs #8690.