add check in case block is not a Dict

This comes up with using `-----` to generate `</hr>`