Fix NpE in getHoverInfo