Bugfix #268 (second try)

I try to fix another variant of bug #268 by calling discard() when an
invoicing transaction doesn't validate.