Fix missing returns.
Begin arcbot message
This merge request is automatically copied from !685 (merged) orginally made by @aleksandr.konstantinov
End arcbot message
While compiling with optimization turned on gcc may produce bad code if function is missing return.