Fix Selendroid error handling

Fix #508