Added utility for checking whether or not an exception contains a certain stack trace element