getParam with no default and validity check

The default for the ```std::string``` type parameter ```T``` is probably not necessary, but the check in ```AddV.C``` should be there to avoid accidentally empty prefixes. Adresses #3934.