[TASK] Fix unreachable code areas

Fixed 2 unreachable statements made obvious by PHPCB/PMD