Okay. Glad you replied. I was actually able to find out the cause. I had to use Elegant Themes specific function et_get_option instead of get_option as the theme stores the settings data as serialized array with theme options in a global variable. The function can be found in the custom_functions.php file. This may be useful for others seeking a solution to this kind of problem.