Validate slugs before calling content API

This should prevent some of the exceptions we're seeing at the moment.
Merge pull request #244 from alphagov/validate_slugs

Validate slugs before calling content API