Yes the thought is exactly that since this is (for better or for worse) a util function, it has to be robust against all types of inputs.
But do note that this overflow read does actually occur, when `Preferences -> Templates -> Developer` is empty (= `\0`).