typecast $used_by to array in case its not set. Closes #5350