Fixed bug in the getFields method would return 0 rules if no parameter array was set