Fix applicationNameFromBlockOrDefault typo

I believe there may be a typo in `replacePlaceholdersAndPrintStringFromBlock`.