fixed NPE in video gallery activity