Fix smallparagraph by replacing buggy getSelectedBlock function with newer, well-tested getAllTopLevelSelected. Refs #1381.