Fix regression: error in Form Builder when opening control details

Regressed with 4939fa4946ab91a19790c56052401e32dc30ce76 #1094.