JavaAPI: Fix JSPropertyAttribute has wrong value after using add()