MT#5879 Fix error in old invoice_templates is_active functionality.

Fix is specific for mr3.3