Fixed visitParamExtract Function for Documentation Compliance

Fixed the behavior of the visitParamExtract function for better compliance with documentation.