Git commits in Moodle 3.1.0 by Conn

commit 453f69263f67abbeeee0e085c17faf6e1fc2d8db
Author: Conn <conn@cmrwarwicker.com>
Date:   Fri, 03 Apr 2015 06:54:03 +0800
Tag:    v3.1.0-beta

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