Validate sample periods are within date range when checking indicator configuration.

Fixes #452.