setContentView(null) NPE fixed

Fixed NPE when calling setContentView(null)