fix #1784 airplane refresh oncreate

fix #1784
fix #1797
fix #1386

Should make sure WordPress.getCurrentBlog() isn't null, since this routine might be called from other places in the future.