don't crash if hash doesn't have c.type
add comment
prevent crash if invoice has no client
prevent exception calling can_be_exported on invoices types without this method
Merge branch 'master' into import_xml_invoices

Conflicts:
	app/models/invoice.rb
tests import invoice from xml, use nokogiri