sixlowpan: fixed net_if counter

This is a fixup for 11254577eb01178b4ca90fe6383987cc0721fca6 which
caused this function to always return a positive number, when any
interfaces was configured.