The getReportParameters method of the HTML5 Report Viewer omits parameters with unset values that have their AllowNull property set to False.
The reportSource method of the HTML5 Report Viewer can be used as an alternative.