[DO NOT MERGE] fixes #7594 - extract params defined in apipie documentation to use for strong parameters

You should be checing on the a not being nil, as that happened, if the particular action is not documented