roslib: cleaner implementation for undefined property handling in get

Signed-off-by: Sven De Craemer <sven.decraemer@intermodalics.eu>