Use constant from Zend\Mvc\Application, not $target variable

Fixes zendframework/zf2#3768