Fixes issue with extraParams being undefined.