Issue #1789824 by dawehner, tim.plunkett: Convert the handler filter from CTools dependent.js to #states.