Fixed a bug that Handle<T> cannot return nullptr
Fixed crash with software renderer