Fixed get_descriptor
Also check for None score_msg
Optimization when getting descriptor