Bugfix: don't crash when attempting to publish new invalid doc

Not sure what the thinking was behind `.tap`, it will always execute the
block.

Added a cucumber scenario for this as well, although that might be
better covered by a lower level test.
Merge pull request #23 from alphagov/fix-error-when-publishing-invalid-case

Bugfix: don't crash when attempting to publish new invalid doc