Unbreak action_missing

This reverts commit 7cc5bf51b4c16e89340b8c45ca0297e387226aaf, which
assumed that all controller actions can be known beforehand - completely
negating action_missing.

Also adds a test to ensure this mistake does not happen again.