Fix missing project action after clicking Save in project configuration

Hi, this pull requests fixes JENKINS-9965, where a project action was incorrectly being returned as null. Tests updated accordingly.