Fixed exception in ScrollController when layout-function didn't have any capabilities