Fix typo in asserts which was not found by release build

* misspelled nullptr