Fixed layout inflater throwing NullPointerException during initization.
getPackage method may return null in non-real environment like
Robolectric.
Merge pull request #614 from uKL/master

Fixed layout inflater throwing NullPointerException during initization in non-real runtime, like robolectric