block: add asserts to help static analyzers
block: add asserts to help static analyzers

Fixes CID 337718 and 337719.

gopro/gopro-lib-node.gl,gopro/gopro-lib-node.gl,gopro/gopro-lib-node.gl,gopro/gopro-lib-node.gl