Avoid operations on NULL pointer for containerof/list_entry tests