This issue appears with custom SmartObjects that were built with input properties hardcoded. When executing methods post 5.1 upgrade, 'Value Cannot be NULL. Parameter name: key' error is displayed.
'Value Cannot be NULL. Parameter name: key' error is displayed when criteria in regards to custom SmartObjects having their input properties hardcoded when built is met.
This issue was resolved with Fixpack 3.