setContentView(null) NPE fixed

Fixed NPE when calling setContentView(null)
Merge pull request #721 from kkocel/patch-1

setContentView(null) NPE fixed