Refine check for use of MyFaces

Issue: SWF-1641