Fix ordering of panels in panel containers

An off-by-one error caused new panels to be inserted later in the document than intended.

This caused the find-and-replace panel to appear below the status bar.