[builder] Add check for empty link contents