sched_rr_get_interval: converted assert condition into a standard error code and added check for a NULL interval being passed in.