Fix nullptr in getScaledVideoFrame