The 49ers got a defensive touchdown in the strangest way possible.