ALLJOYN-2498: More convertions of "= 0" to "= NULL" per coding standard

Change-Id: I05991e260b6dcfb796d79e2ac31af995de76df4c
ALLJOYN-2498: Fix build warnings and logic cleanup.

Change-Id: Ie70f90e4821f7195e3fc0729291473718a712476