UnboundLocalError in plugin install since simpejson deprecation

Ticket:	#4072