fix possible null pointer if ShowTitleBar="False"
Merge pull request #1173 from MahApps/1172-punker76-hidden-titlebar-can-not-maximize-window

fix not maximizing window on double click or drag if ShowTitleBar="False"