fixed lookup of controller_data in rack middleware