Checks validity of argument stderr and errors out if it is not boolean