[Android] Fix the title comparison crashes with NullPointer

Assign empty string for null pointer before comparison.