[hb-subset] Improve error handling a bit * Check that output-file option is actually set before trying to open it. * Print file name and errno when opening the output file fails. * Be more resilient when writing output file and use ferror() to check for errors. Fixes https://github.com/harfbuzz/harfbuzz/issues/2711