Forcing numerical comparison on Task priority, avoid nil on invalid <=> comparison