MDL-38682 Allow configuring blocks for courses lists pages

Also fixed block configuration form error when pagetype string does not exist (for course- pages)