Sanity check if the point set is empty

Fix for 17473.
http://bugs.mitk.org/show_bug.cgi?id=17473