fib_frontend: fix possible NULL pointer dereference