Seen and unseen: bursty star formation and its implications for observations of high-redshift galaxies with JWST