fix bug with default value for timeout

Fix for this issue: https://dev.guardianproject.info/issues/3698