Corrected debug message for NULL shapes