Added more conditions before loading style sheet/

Signed-off-by: schnnmbr <sachingopalakrishnan@gmail.com>