MDL-30669 - blocks: Added a warning when deleting blocks that have multiple displays set.

Also added a fix to the function course_page_type_list(). It was making a call to
get_context_info_array() which will generate an error if $currentcontext is not set.