fixed PHP error when a message doesn't have any parameters
added missing Foundation message