[PATCH 5.18 698/879] rtla: Avoid record NULL pointer dereference