Additional compatibility fixes for Robot Framework 2.8+

Could we just do a version check here instead of cumbersome try-excpet?