Fixed getBlocks method returning DocPad instead of blocks

Hello

Just a minor fix to on the blocks getter. Also made all the chaining consistent across the file.