CUDA: Fixed missing else-clause when wrapping a CUDA buffer.

Might have gotten lost during refactoring?