Update plan.cpp

Error on origin code:
same expression on both sides of '||'.

Modification:
refer to line 1144 for another correct action "If we are going to take any action on this package".