Replace leap_asserts with leap_check.
Merge remote-tracking branch 'ivan/bug/3007_replace-asserts-with-checks' into develop