Fix error handling for lvalue diagnostics.