Added condition for empty inlines