Avoid null parent when inflate + save inflate

http://www.doubleencore.com/2013/05/layout-inflation-as-intended/

TODO
Merge pull request #1 from Dzakus/patch-1

Avoid null parent when inflate + save inflate