[1155991] [EAP5] Unable to create datasource/Queue/Topic via JON
We only want to trim the managedProperties when updating ResConfig, not
when creating a resource. In that case all props need to be set
appropriately.

(cherry picked from commit 673af680fd56bb805ad321e025259a8ff1e66270)
Signed-off-by: Libor Zoubek <lzoubek@redhat.com>