Fixed potential crash when accessing NPC sprites

Don't return a reference, because QMap::value returns a value.