MT#7867 Add REST API check for 'invoicetemplates'

(cherry picked from commit 99fd32c80e425bba40490986a47d5e587aa11bf2)