The function getItemtext() expectes either a (full) item ID, such as AB01_01 or a question ID and item number, e.g.: getItemtext('AB01', 1)
L5 is no such ID that would identify an item, so it cannot resolve an item text.
As I do not know where the parameters for get_heart() are from, it's hard for me to give any useful hints what to change. If you ko´now the question ID, and $index identifies the item, this one might work:
getItemtext($questionID, $index + 1)