[ticket/11366] Bug Fix: Extensions removed but still registred in DB

Fix the bug with the Extensions removed but still registred in DB

PHPBB3-11366