Fix #17227 - When creating a score from a template, transposing instruments had wrong key signatures.

Corrected in mscore/file.cpp, by repeating the same test used in ver. 1.3
Merge pull request #368 from mgavioli/Fix_17227_Transp_instr_from_template

Fix #17227 - Wrong transpositions in scores from templates