src/redshift.c: Refactor the g_value_get_uint() so that we can always do
g_value_reset().