Fix setClose on Application entity to set to null instead of empty string.
Fix isByInvitationOnly for imports and new applications.