Fixed a failing assertion because StringRef cannot be null, just empty.