Fixed #5704: fixed a bug of WidgetReader that it gets a incorrect value when color's value is 0

Fixed a bug of WidgetReader that it gets a incorrect value when color's value is 0