fix warning + error in getAllowedTagsInFile() + nits