Check for NULL @SGP slot before proceeding