Core (VisVideo, VisBuffer): Fix crashes when objects are null