Fix for bad octothorpe correction

For octothorpes (#) outside select statements, `MessageFormat.Utils.numSub` was incorrectly called when `data.pf_count` is invalid, which also makes the Travis CI report failure.