[FIX] correctly handle custom onclick attribute when autopostback = true for checkbox

onclick is in common_attrs not in Attributes, so we can't use BuildScriptAttribute

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>