Pass the context into plan get_by_uuid

Change-Id: I58ed7739fbfbaeba569f8741a255e7eb569c66a1