Man jailed over nursing home attack bailed