Fix materials.default() to actually return selected attribute from function

All the other methods return the value, so I presume this one should too.