fix retry logic for roslibjs 0.9.0