Fix determination of $revId

Change-Id: I75cb898dcd20db8052688152d55a8f3d63e9e241
Improve title checking in extractTarget

Block titles containing only a fragment (e.g. #Example) and pages in
NS_MEDIA.

Change-Id: I7e01e63717b99fe6937fa8598fdaffe8fdfe4527
Reject empty lists or cats as import sources

Don't allow empty lists or categories to be used as sources for importing
target pages in Special:CreateMassMessageList

Bug: 70522
Change-Id: I329fec8b56e5ea25a27d770382bbf2c286c1a82d
Merge "Improve title checking in extractTarget" into contenthandler
Merge "Reject empty lists or cats as import sources" into contenthandler