fix #499: show an error message and close the picker activity if there is no media after refreshing from server

fix #499