Fixed problem with empty literals for certain predicates