Function isValidBlockId

Validates a block id. Returns the id if present in restored blocks, otherwise returns null.