ISPN-4705 IllegalArgumentException: Segments must not be null or empty

https://issues.jboss.org/browse/ISPN-4705