Add asserts to catch issue early
Merge branch 'master' of https://github.com/supertuxkart/stk-code