test(test/unit/templating.js): #1021 ensure fileId is a number
fix(client/js/templating.js): #1021 getFileId should return a number