BUG Fix hard crash in convolution

Arguments were not checked in Python, triggering a segmentation fault
later.