I'm quite sure that it happens because it's a view entity - it does not exist in world-space, thus walls etc. won't block the light sources/cast shadows on the view entity.
The only things to prevent it that comes to my mind: - Turn lighting off for the view entity - Make a normal entity (in world-space) instead