Fixed LayoutInflater.inflate() result when attachToRoot is on.

inflate() should always return the root view. When attachToRoot is
enabled, this means that the result should be the root view rather than
the inflated view.