More accurate no-write level passing logic

Part 2 of 2 for https://github.com/code-dot-org/blockly/pull/328