Fix crash for unknown objects.