Adds two mising DEBUG == '1' guards

I found these while trying to debug a separate issue.