Fix for Invoice.status() taking 'closed' state into consideration