APF-1366: Fixed conditionally rendering a button by upgrading to PrimeFaces 4.
APF-1366: Reverted conditional button since issue still happens in PrimeFaces 4.