Fixed a constraint issue with pluginkeyvalues table for null user.