Ensure post object was retrieve before altering the body class