Avoid null parent when inflate + save inflate

http://www.doubleencore.com/2013/05/layout-inflation-as-intended/