Fix regression related to intersection with empty shapes. Fixes #996