Added back create_panel_if_nonexistent

Apparently c901c0f3fb833bc55915a121306fa7e54632e84b (commit a few days
ago) broke this. Looks like @robertfewins-kalb's repo didn't have this
function. Added back.