Update swimconvert.class.php

Added control to return error code if no event elected, this change avoids the undefined offset error.