Added missing variable declaration

This should fix the "reflow-bug" that produced the error message "compute_dimensions could not be found on undefined".
Merge pull request #4931 from weltraumpirat/master

Added missing variable declaration