Avoid iterate undesired properties on controls.custom

Iteration through controls.custom is modified to avoid iteration through
not desired inherited properties.