I have previously used a codeblock to force dynamo to wait for both inputs prior to proceeding.
List.FirstItem({a,b})