Fix curly brace check when an if statement is the alternate.