Fixed a small bug:
When clearing the build panel in EditShapeWindow, even if the build
panel is dirty, the user still can't save an empty shape