fix crash when removing an expense without id