Fix segfault for periodic boundaries on GPUs
Description
Execute the kernel only if there are boundary points. This avoids the segfault that occurs when trying to access a size-0 array on the GPU.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.