KT-4576: Intention to convert assert to an if with throw

First side of this intention http://youtrack.jetbrains.com/issue/KT-4576
assert -> if throw