Avoid using null pointer in feature_unlocked.cpp
Check if ribbon is null