Fix error log assertion tests
Add null checks