MDLSITE-2455 Do not throw coding exception when the activity is not found
MDLSITE-2455 Do not throw coding exception when the activity is not found

Under certain conditions, coding exception is thrown when fetching items from
the navigation bar. The patch prevents them. See more details in the tracker.

dilawar/moodle