net: net_app: Close packet if couldn't skip TLS header
net: net_app: Close packet if couldn't skip TLS header

Assertions should only be used to check invariants.  Things that may
change value in runtime are better left to proper checks.

Signed-off-by: Leandro Pereira <51c7437a02b34df685e6b4ecb2e9bca23efe2e1a@intel.com>

Vudentz/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,ldts/zephyr,kraj/zephyr,punitvara/zephyr,zephyriot/zephyr,Vudentz/zephyr,mbolivar/zephyr,GiulianoFranchetto/zephyr,punitvara/zephyr,ldts/zephyr,nashif/zephyr,Vudentz/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,ldts/zephyr,Vudentz/zephyr,zephyriot/zephyr,galak/zephyr,kraj/zephyr,finikorg/zephyr,galak/zephyr,explora26/zephyr,nashif/zephyr,explora26/zephyr,punitvara/zephyr,kraj/zephyr,finikorg/zephyr,GiulianoFranchetto/zephyr,zephyriot/zephyr,punitvara/zephyr,GiulianoFranchetto/zephyr,nashif/zephyr,kraj/zephyr,galak/zephyr,GiulianoFranchetto/zephyr,finikorg/zephyr,nashif/zephyr,Vudentz/zephyr,nashif/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,mbolivar/zephyr,mbolivar/zephyr,mbolivar/zephyr,explora26/zephyr,kraj/zephyr,zephyrproject-rtos/zephyr,zephyriot/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,punitvara/zephyr,zephyriot/zephyr,mbolivar/zephyr,finikorg/zephyr,explora26/zephyr,explora26/zephyr,zephyrproject-rtos/zephyr