Fixed bug in user tasks filtering in patients and protocol controllers