Invert styles priority in print

Fix #1709 
layer always has the getStyleFunction function?