Support isActive
Fix extractQueryParams to cope with null param