Added validation for pre-rendering controls in case there area custom controls passed.
Added validation for pre-rendering controls in case there area custom controls passed.

gulloa/CustomImageGallery,gulloa/CustomImageGallery