MDL-49743 singleview: Prevent errors when no itemid was selected
MDL-49743 singleview: Prevent errors when no itemid was selected

Signed-off-by: Conn <3908a35df9ebc7b5b13c870f49489bd4a10598b1@cmrwarwicker.com>

dilawar/moodle