Fixed undefined object key check.