Check for negative height or width before changing object since it will cause an exception
Merge pull request #576 from gumme/WpfDesignerNegativeWidthHeightCheck