hawtio 1606: Add api to check if a profile exists without getting an exc...

...eption.

https://github.com/hawtio/hawtio/issues/1606