[Tizen] Prevent segmentation faults in bluetooth

Fixes are connected with cases when null pointers were not
handled properly. Some other nits fixed.