You could put an invisible rectangle on top with no fill and no stroke, then group everything.
An example
AnotherOne possibility is to use filled rectangles instead of lines with strokes. Personally, I'd prefer this method since it's by far the simplest.