[sc-memory] Fix bug with empty content get
[builder] Fix lexer error handling