Ensure 'programflags' is initialised.  ProgramInfo::LoadProgramFromRecorded sets some flags individually but does not explicitly ensure that no other flags are set.
Only force a refresh of the metadata rather than invalidating the cache as that causes a crash if file system browsing is enabled.

Refs #12052