cmake -E bin2c: Fix segfault in template placeholder options

If --template-array-placeholder or --template-length-placeholder
were specified without --template-file, a segfault resulted from
trying to read from a std::istream* that was set to nullptr.
Explicitly check to see if these options are set without
--template-file.
6 files changed