[FIX] avoid leaving dangling account moves when deleting a bank statement

Fixes #3292