Fix a segfault in gemv