vslsmas: Add NULL dereference checks for direct rendering.