Added afterAction call and getFlash now return an empty array if key is not set