Fix NPE in robotium test