No action taken by the department or decision not to act made by the department or condition or action required of another by the written instruction of the department shall be construed as cruelty to animals under any penal statute of this Commonwealth provided that such an action, decision or condition is taken, made or required under the authority of this chapter and its attendant regulations.