bootstrap.php: gracefully handle missing $var
bootstrap.php: gracefully handle missing $var

In `logException`, don't try to get the current var if we don't have
one. This will make logging more tolerant to pathological errors.

hemberger/smr,hemberger/smr,smrealms/smr,hemberger/smr,hemberger/smr,smrealms/smr,smrealms/smr