fix crash when setting failure w/ no c filename

now the failure event code checks for a null c filename before setting it