[PATCH 6.1 022/321] rtla/osnoise: Prevent NULL dereference in error handling