Check for return type of get_preferred_from_update_core()

get_preferred_from_update_core() may return boolean false in which case trying to access its non-existent property would throw a notice.