Corrected property access on possibly undefined variable.