Check for null target in avoidProxy to prevent exceptions; Close #560.