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