title: getViewLifecycleOwner() in DialogFragment leads to crash
body: <p>I use <code>DialogFragment (onCreateDialog)</code> and ViewModel for it. But, when I try to pass <code>getViewLifecycleOwner()</code> to the <code>LiveData::observe</code> method I get the error below:</p>
  
  <pre class="lang-none prettyprint-override"><code>java.lang.IllegalStateException: Can't access the Fragment View's LifecycleOwner when getView() is null i.e., before onCreateView() or after onDestroyView().
  </code></pre>
  
  <p>Is it possible to use <code>getViewLifecycleOwner()</code> inside a <code>DialogFragment</code>?</p>