(bug 41185) Fix Call to a member function getPrefixedText() on a non-object

Change-Id: I8c7bcb9c0b65f79385137d7cc598229a42330a41
Merge "(bug 41185) Fix Call to a member function getPrefixedText() on a non-object"