Fixed crash (NULL pointer) in zbeacon/s_get_interface

Check for NULL before dereferencing interface->if_addr in s_get_interface method.