fix null bug in LdbcQuery12Result equality check