Ensure that getattr returns a default