Fixes a bug where a null sleep duration wasn't getting defaulted