Fix crash when both --trace-expand --warn-uninitialized are passed to CMake
filename value was not checked for null in ExpandVariablesInStringNew, which seems to occur during CMake initialization for $ENV and system variables. They can be checked with --check-system-vars, so ignoring them here should be fine.
Detailed logs: #17896 (closed)