safeguard if no resources registered, remove empty form values