Fixed so attr/data returns undefined instead of null.