API-125 Fixed bug in the signature alg when not required parameters are involved

When a parameter is not specified, it was not taking into account to
calculate the signature