A small bug fix when adding new block in course, plus a fix for https://github.com/ETHZLET/moodle-block_eduappup/issues/1