You're worrying too much. If your best and safest option was to jump on the sidewalk for a bit then do it. If you live in some area where cyclists are targeted for punishment for riding on sidewalks, you can always walk the bike around the obstruction. Just use your best judgement; it's not like the boogeyman is going to come get you if your bike touches the sidewalk.