EA-1158/CP-5958: Replace assert with ASSERT

Calls to assert() kills tapdisk without leaving a clue. Using ASSERT
macro first logs and then kills tapdisk. The change is performed only
on the assert calls introduced by EA-1158.