RDKCOM-2586: RDKBDEV-730: move memset() to after NULL pointer check
RDKCOM-2586: RDKBDEV-730: move memset() to after NULL pointer check

Reason for change:
move memset() to after NULL pointer check in _init_DM_List() + misc cleanup
Filling the allocated buffer with 0's should be done after the NULL
pointer check that the allocation succeeded.
Test Procedure: Refer to JIRA
Risks: None.
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>

(cherry picked from commit b9a6d74d4c3c2a085e6121ec3f2d3517ce8e78e2)
Change-Id: Id2263b3935818c2d8a0885a4d7ba1ecf4f7f0976

rdkcmf/rdkb-CcspLMLite,rdkcmf/rdkb-CcspLMLite,rdkcmf/rdkb-CcspLMLite