Corrected issue where the score was assigned to NaN.

Corrected issue where the score (of the type Number) was assigned to NaN values when trying to get preferred languages of an entity.

This should replace the previous pull #153