Fix missing params not being shown in Error message

Bug introduced in 4d920bf. I added test for this feature to prevent similar issues in the future...