Refactor `Block::getBlockActionCollectionID()`

Refactor `Block::getBlockActionCollectionID()` return value.

- Return Collection object integer id if `Block::getCollectionObject()`
  return an object instead of just returning the object
- Return false if not Collection object found
Merge pull request #974 from mkly/refactor_block_getcollectionobject_return_values

Refactor `Block::getBlockActionCollectionID()`