add an additional check if an ajax action id is present, fixes an except...

...ion in rare corner cases

i.e.: do a qc.pA call by hand in js without an ajax action id