Refine "Do not save back end forms if they are auto-submitted (see #4077)"
Make sure `$session[$key][TL_REFERER_ID]` is an array
Reverse the order of `is_array()` and `empty()` (see #5469)