Remove last block content from a flexbox, leaving only inline content. This should not crash text