Using try block to avoid Test Failures when get_profile() is not an
attribute