Added a check in routing library due to a bug in libnl.

Review: https://reviews.apache.org/r/27105