In that elseif, if record is false, it means we're doing a multilayer query, and i'm not sure what happens if there's a mix of WMS _and_ WFS layers currently active and queryable