received invoices without or with invalid signature should not leave invoice on error state, closes #3957