Prevent crash when sleeping for non-numeric time