Avoid property access on null/undefined.