Fix the IPv6 bugfix

@bthebaudeau found a problem here: https://github.com/contiki-os/contiki/pull/457

This pull request should fix the problem.