Fix issue that causes file layouts to get mangled

Added a "from_file" flag to populate_tree and _insert_item that
short-circuits the code that inserts new rows when a layout is
being loaded from xml.

From load_file, called populate_tree with from_file=True