COVERITY-14276/14277: unchecked dynamic_cast

Fix possible null pointer dereferences caused by unchecked dynamic_cast
calls in DiscountMarkdownConverter class.
Merge branch 'develop' into coverity_scan