Issue #1408908 by AndyF: minor changes - passes valid textfield component to render function, cleaned up uc_attribute extra array, removed PHP notices.