Fix context creation bug when you call without platform and without device