[KARAF-2832]Fix exception when using the features-maven-plugin with non osgi compliant features version
(cherry picked from commit e9edfa60e013d7550cd69c5f370fdca99dfb50b2)