Save activity only if time is provided