hal: Initialize keep alive list before clearing if wrong state

When the keep alive state is incorrect the list is not initialized
before calling this.
Move list initialization up to avoid a null pointer dereference crash
when this happens.

Change-Id: Id530a11c3d0fcad2efa6247f1adbd3f7283921a9
1 file changed