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

fix nasty null pointer