Fix for the previous commit

The implementation in the previous commit depends on Mediawiki4Intranet patch.
Remove this dependency and use UploadComplete hook to insert PDF thumbnail jobs.