MDL-47189 my: Fix the addition of default blocks to my/ page

Fixing the upgrade script so that they attach the new blocks
to the right my_pages entry. An upgrade script has also been
added to fix the existing bad data.
MDL-47189 my: Update test to check that existing blocks remain after add

Specifically checking for strings in the blocks because the tests
passed when looking for the string anywhere.