Merge "version_policy: avoid fclose a NULL file pointer"