[TASK] Optimization in AbstractViewHelper

Small optimization in AbstractViewHelper to fetch the type
after the check for the default value of the argument.

Change-Id: Ie9b68d892f4a20521606709b8fdfba83099c3d70
Resolves: #53746
Releases: 6.2, 6.1, 6.0
Reviewed-on: https://review.typo3.org/25496
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters