You could cut blocks for the corners of your lid and butt the molding against those blocks. That way, you would have nice sharp corners and not have to buy any more molding or make precise miter joints. The corner blocks could be two pieces joined to form an "L" or a solid piece with the relief...