Fix crash due to incorrectly implemented assert

Test: manual
Change-Id: Ic0ff5614c2f6e20161842097b1975b162955c44d
1 file changed