CasperJS waitForOpaque fails more gracefully