Make sure action is set before trying to read it
This was causing multiple "undefined index" notices on screens lacking an action parameter