Fix histogram not displaying in playback mode (from rev 3232).
Add checks for 'vid_get_viewport_active_buffer' returning null.