Hello,
The Gutenberg plugin changes HTML markup and breaks the current code. We haven't updated the code for post format yet. Gutenberg can change the markup anytime until it's stable (merged into core). We'll keep working on that to make the conditional logic works.