Git commits in Moodle 3.1.0 by James

commit eb9a3e93799f12174af1acb1b824b7a3f87394ec
Author: James <james_baster@shelter.org.uk>
Date:   Tue, 08 Mar 2016 19:47:58 +0800
Tag:    v3.1.0-beta

MDL-53383 navigation: Do not require $type in remove()