Disable ContentHandler features if $wgContentHandlerUseDB = false

Change-Id: I604303ed9379a10b9dd821686b3e5387a935a58c