Don't export TRAVIS_TEST_RESULT if there is no after_script commands

export commands tend to sometimes fail with no reason (it may be a bug
in net/ssh or other part of executing commands for vm), until we fix it,
we may just try to minimize executing them - if there is no
after_script, people will not use it anyway.