VideoCommon: fix custom textures This fix a regression by revision 6cece6b48667 delete pointer must not do anything if pointer==NULL.