Only set temp_dir if valid value
Only set temp_dir if valid value

realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-object-store,realm/realm-core,realm/realm-object-store,realm/realm-object-store