removing list_first_entry_or_null for backward compatibility

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>