[coretext] NULL check in ct_font_descriptor_get_weight()

Ensure that CFDictionaryGetValue() didn't return NULL before we
call CFNumberGetValue().

https://bugzilla.gnome.org/show_bug.cgi?id=736697