Fix dot*w to return 0 for empty vectors (BLAS interface)