Fix regression of rebuild of non-parameter build

This corrects the regression involved when builds are triggered
with parameters that have not been defined in the job.

Without this fix, the Rebuild Action does not display the build parameters
that were previously used by the build that is being rebuilt.

This fixes [FIXED JENKINS-24491]

Note that I also fixed some formatting issues.