Null-check some things.