Fix unit tests. Fix problem with $old now might contain null.

1 job for marcUpdateSQLFunctionsVersion in 2 minutes and 35 seconds (queued for 1 second)